//求和
import java.util.;

注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
   public static void main(String[] args) {
       Scanner in = new Scanner(System.in);
       int n = in.nextInt();
       int m = in.nextInt();
       ListListInteger ret = new ArrayList();
       ListInteger tmp = new ArrayList();
       fun1(n, 1, ret, m, tmp, 0);
       int len = ret.size();
       for (int i = 0; i  len; i++) {
           int ll = ret.get(i).size();
           for (int j = 0; j  ll; j++) {
               System.out.print(ret.get(i).get(j));
               if (j != ll-1) {
                   System.out.print( );
               }
           }
           System.out.println();
       }
   }

   static void fun1(int n, int flag, ListListInteger ret, int m, ListInteger tmp, int sum) {
       if (sum = m) {
           if (sum == m) {
               ret.add(new ArrayList(tmp));
           }
           return;
       }
       for (int i = flag; i = n; i++) {
           tmp.add(i);
           fun1(n, i+1, ret, m, tmp, sum+i);
           tmp.remove(tmp.size()-1);
       }
   }
}